package com.jiantong.work.service;

import com.jiantong.work.model.MaterialPurchaseRecord;
import io.terminus.common.model.Paging;
import io.terminus.common.model.Response;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by maowenjie on 2017/4/12.
 */
public interface MaterialPurchaseRecordReadService {
    /**
     * 根据id 查找
     * @param id
     * @return
     */
    Response <MaterialPurchaseRecord>findMaterialPurchaseRecordById(Long id);

    /**
     * @param id 主 键
     * @return 状态
     */
    Response<Map<String, Object>> findStatusById(Long id);

    /**
     * 根据状态查询
     * @return
     * status
     */
    Response<Paging<MaterialPurchaseRecord>>pagingMaterialPurchaseRecordByStatus(Integer pageNo,Integer pageSize,Long breedFactoryId,Integer status);

    /**
     * 根据状态查询
     * @return
     * status
     */
    Response<Paging<MaterialPurchaseRecord>>pagingMaterialPurchaseRecordByUser(Integer pageNo,Integer pageSize);


    /**
     * 根据从日期到日期和养殖场名称查看防疫中心5项纪录的列表
     */
    Response<Paging<MaterialPurchaseRecord>> pagingMaterialPurchaseRecordGqv(Integer pageNo, Integer pageSize, Long breedFactoryId,Integer breedType, Date fromDate, Date toDate);

    Response<Paging<MaterialPurchaseRecord>> pagingMaterialPurchaseRecordByKeyWords(Integer pageNo,Integer pageSize,Map criteria);

    Response<Double> sumTotalPriceForWeb(Map<String, Object> map);

    Response<List<Map<String,Object>>> findMaterialForWeb(Map<String, Object> map);
}
